import reqAxios from '@/utils/request'
// 登入
export function login(data) {
  return reqAxios({
    url: '/auth/local',
    method: 'POST',
    data
  })
}
// 获取用户信息
export function getUser() {
  return reqAxios({
    url: '/users/me'
  })
}

// 注册。测试
export function register(data) {
  return reqAxios({
    url: '/auth/local/register',
    method: 'post',
    data
  })
}
